package com.gismore.demo.job;

import org.springframework.batch.item.ItemReader;
import org.springframework.batch.item.NonTransientResourceException;
import org.springframework.batch.item.ParseException;
import org.springframework.batch.item.UnexpectedInputException;
import org.springframework.stereotype.Component;

/**
 * Created by lei on 2017/6/9.
 */
@Component
public class HelloReader implements ItemReader<String> {
	@Override
	public String read() throws Exception, UnexpectedInputException, ParseException, NonTransientResourceException {
		return "Hello World!";
	}
}
